package com.gewu.pm.bean;

/**
 * 审批申请数据Bean
 * 
 * type 状态值：
 * 1 = 待审批
 * 2 = 审批通过
 * 3 = 已驳回
 * 4 = 已撤销
 */
public final class ApprovalApplicationBean {
    
    private String id;              // ID
    private String title;           // 标题（如：买赠活动）
    private String activityName;    // 促销活动名称
    private int type;               // 状态类型（1-待审批，2-审批通过，3-已驳回，4-已撤销）

    public ApprovalApplicationBean() {
    }

    public ApprovalApplicationBean(String id, String title, String activityName, int type) {
        this.id = id;
        this.title = title;
        this.activityName = activityName;
        this.type = type;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getActivityName() {
        return activityName;
    }

    public void setActivityName(String activityName) {
        this.activityName = activityName;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    /**
     * 获取状态文本
     */
    public String getStatusText() {
        switch (type) {
            case 1:
                return "待审批";
            case 2:
                return "已通过";
            case 3:
                return "已驳回";
            case 4:
                return "已撤销";
            default:
                return "";
        }
    }
}

